package com.edu.service;

import com.edu.entity.Rentals;

import java.util.List;

public interface RentalsService {
    /**
     * 根据用户id查订单
     * @param uid
     * @return
     */
    public List<Rentals> queryRentals(int uid);
    /**
     * 添加订单
     * @param uId
     * @param vId
     * @param duration
     *  @param totalCost
     * @return
     */
    boolean addRental(int uId, int vId , int duration,double totalCost);
}
